{ Класс таблицы пренадлежащей объекту

  Module is a part of project http://code.google.com/p/drivers-training-request
  Copyright (C) 2012 Leonid Vlasov leoniv@bk.ru

  This source is free software; you can redistribute it and/or modify it under
  the terms of the GNU General Public License as published by the Free
  Software Foundation; either version 2 of the License, or (at your option)
  any later version.

  This code is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  details.

  A copy of the GNU General Public License is available on the World Wide Web
  at <http://www.gnu.org/copyleft/gpl.html>. You can also obtain it by writing
  to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  MA 02111-1307, USA.
}

{ TGridTemplate }

TGridTemplate = Class
  FFixedCols:Integer;
  FOptions:TGridOptions;
  FFixedRows: Integer;
public
 constructor Create(AFixedCols,AFixedRows:Integer;AOptions:TGridOptions);
 property FixedRows:Integer Read FFixedRows;
 property FixedCols:Integer Read FFixedCols;
 property Options:TGridOptions Read FOptions;
 //=[goAlwaysShowEditor,goColSizing,goDblClickAutoSize,goDrawFocusSelected,goEditing,goFixedHorzLine,goHorzLine,goFixedRowNumbering,goFixedVertLine,goFixedColSizing,goVertLine,goSmoothScroll];
//
end;




{ TTableOfObject }
TTableOfObject = Class(IContainerObject)
//  procedure DataToGrid();
//  procedure GridToData();
//  function GetCel(ColName: String; Row: integer): String;
//  function GetColumn(Name: String): TFieldDescriptor;
//  procedure SetCel(ColName: String; Row: integer; AValue: String);
//  procedure SetGrid(GridTemplate: TGridTemplate; AGrid: TStringGrid);
//  function GetGrid(GridTemplate: TGridTemplate=nil): TStringGrid;
//  function TotalColumnsWidth():Integer;
//  protected
//  {TODO  -o: -c: : FIX IT }  FDataRows:TArray;//array of TStringList;
//  FGrid: TStringGrid;
//  FColumns:Array of TFieldDescriptor;
//  FRow:TStringList;
//  function FixedCols():integer;
//  function FixedRows():Integer;
//
//    //  procedure SetGrid(AGrid:TStringGrid);
////  procedure KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
//  public
//    Procedure Clear();
//    property  Grid[GridTemplate:TGridTemplate]:TStringGrid Read GetGrid Write SetGrid;
//    property  Column[Name:String]:TFieldDescriptor Read GetColumn;
//    property  Cel[ColName:String;Row:integer]:String Read GetCel Write SetCel;
//
////    //constructor Create(AFields:TFieldsDescRecords);overload;
////    //constructor Create();overload;
////    //Procedure Add(FildDesc:PFieldDescRecord);
////    //property Grid:TStringGrid read FGrid write SetGrid;
////    //function ValidCell(Col,Row:Integer;Mess:String):Boolean;
////    //function ReadFromXML():Boolean;
////    //function WriteToXml():Boolean;
////
end;

